﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace DMM
{
    /// <summary>
    /// Interaction logic for dminstall.xaml
    /// </summary>
    public partial class dminstall : Window
    {
        public dminstall()
        {
            InitializeComponent();
        }

        private void s1usb_Checked(object sender, RoutedEventArgs e)
        {
            if (s1sd != null)
            {
                s1sd.IsChecked = (bool?)false;
            }
        }

        private void s1sd_Checked(object sender, RoutedEventArgs e)
        {
            if (s1usb != null)
            {
                s1usb.IsChecked = (bool?)false;
            }
        }

        private void s2yes_Checked(object sender, RoutedEventArgs e)
        {
            if (s2no != null)
            {
                s2no.IsChecked = (bool?)false;
            }
            if (s3usbgx != null)
            {
                s3usbgx.IsEnabled = false;
            }
            if (s3cfgusb != null)
            {
                s3cfgusb.IsEnabled = false;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsEnabled = false;
            }
            if (s3wflow != null)
            {
                s3wflow.IsEnabled = false;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsEnabled = false;
            }
        }

        private void s2no_Checked(object sender, RoutedEventArgs e)
        {
            if (s2yes != null)
            {
                s2yes.IsChecked = (bool?)false;
            }
            if (s3usbgx != null)
            {
                s3usbgx.IsEnabled = true;
            }
            if (s3cfgusb != null)
            {
                s3cfgusb.IsEnabled = true;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsEnabled = true;
            }
            if (s3wflow != null)
            {
                s3wflow.IsEnabled = true;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsEnabled = true;
            }
        }

        private void s3usbgx_Checked(object sender, RoutedEventArgs e)
        {
            if (s3cfgusb != null)
            {
                s3cfgusb.IsChecked = (bool?)false;
            }
            if (s3wflow != null)
            {
                s3wflow.IsChecked = (bool?)false;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsChecked = (bool?)false;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsChecked = (bool?)false;
            }
        }

        private void s3cfgusb_Checked(object sender, RoutedEventArgs e)
        {
            if (s3usbgx != null)
            {
                s3usbgx.IsChecked = (bool?)false;
            }
            if (s3wflow != null)
            {
                s3wflow.IsChecked = (bool?)false;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsChecked = (bool?)false;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsChecked = (bool?)false;
            }
        }

        private void s3wflow_Checked(object sender, RoutedEventArgs e)
        {
            if (s3cfgusb != null)
            {
                s3cfgusb.IsChecked = (bool?)false;
            }
            if (s3usbgx != null)
            {
                s3usbgx.IsChecked = (bool?)false;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsChecked = (bool?)false;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsChecked = (bool?)false;
            }
        }

        private void s3ngamma_Checked(object sender, RoutedEventArgs e)
        {
            if (s3cfgusb != null)
            {
                s3cfgusb.IsChecked = (bool?)false;
            }
            if (s3wflow != null)
            {
                s3wflow.IsChecked = (bool?)false;
            }
            if (s3usbgx != null)
            {
                s3usbgx.IsChecked = (bool?)false;
            }
            if (s3dmbooter != null)
            {
                s3dmbooter.IsChecked = (bool?)false;
            }
        }

        private void s3dmbooter_Checked(object sender, RoutedEventArgs e)
        {
            if (s3cfgusb != null)
            {
                s3cfgusb.IsChecked = (bool?)false;
            }
            if (s3wflow != null)
            {
                s3wflow.IsChecked = (bool?)false;
            }
            if (s3ngamma != null)
            {
                s3ngamma.IsChecked = (bool?)false;
            }
            if (s3usbgx != null)
            {
                s3usbgx.IsChecked = (bool?)false;
            }
        }

        private void s4yes_Checked(object sender, RoutedEventArgs e)
        {
            if (s4no != null)
            {
                s4no.IsChecked = (bool?)false;
            }
        }

        private void s4no_Checked(object sender, RoutedEventArgs e)
        {
            if (s4yes != null)
            {
                s4yes.IsChecked = (bool?)false;
            }
        }


    }
}
